﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Data;
using AspNetCs.Model;
namespace AspNetCs.IDAL
{
   public interface IMemorial
    {
       /// <summary>
       /// 生成纪念表中不存在的随机数
       /// </summary>
       /// <param name="list">不允许出现的随机数</param>
       /// <returns></returns>
       string RndNum(ArrayList list, int Rndlen);
       DataTable GetDataTable(string fileter);
       /// <summary>
       /// 添加
       /// </summary>
       /// <param name="model"></param>
       /// <returns></returns>
       int Add(memorial_model model);
       /// <summary>
       /// 在线追思
       /// </summary>
       /// <param name="model"></param>
       /// <returns></returns>
       int IndexOnTop(memorial_model model);
       memorial_model GetModel(DataRow dr);
       int MemorialPwd_Set(memorial_model md);
       int Update(memorial_model md);
       int UserDel(string filter);
       int Del(string filter);

       /// <summary>
       /// 设置推荐或者取消推荐
       /// </summary>
       /// <param name="Id"></param>
       /// <param name="CancleOrIntro">1表示设置推荐 0表示取消推荐</param>
       /// <returns></returns>
       int SetIntro(int Id, int CancleOrIntro);


       /// <summary>
       /// 审核或者取消审核
       /// </summary>
       /// <param name="Id"></param>
       /// <param name="CancleOrIntro">1表示审核 0表示取消审核</param>
       /// <returns></returns>
       int SetCheck(int Id, int CancleOrIntro);


       /// <summary>
       /// 设置在线追思或者取消
       /// </summary>
       /// <param name="Id"></param>
       /// <param name="CancleOrIntro">1表示设置在线追思 0表示取消</param>
       /// <returns></returns>
       int SetOnlineSign(int Id, int CancleOrIntro);

       /// <summary>
        /// 设置背景音乐
        /// </summary>
        /// <param name="Id"></param>
        /// <param name="MusicId"></param>
        /// <returns></returns>
       int SetMusic(int Id, int MusicId);

       /// <summary>
       /// 字段更新
       /// </summary>
       /// <param name="Upfilter">不需要加“Set”关键字，更新的字段及值,不能为空值</param>
       /// <param name="filter">条件</param>
       void filterUpdate(string Upfilter, string filter);
    }
}
